package com.example.unitestexample.service;

import com.example.unitestexample.entity.Employee;

import java.util.List;
import java.util.Optional;

/**
 * @author ME
 */
public interface EmployeeService {

    /**
     * get the employee by the name
     * @param name employee's name
     * @return Employee
     */
    Optional<Employee> getEmployeeByName(String name);

    List<Employee> getAllEmployees();
}
